﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace ISFProject.Models
{
    public class Continent
    {
        [Key]
        public int Id { get; set; }
        [Required(ErrorMessage = "name is missing")]
        [StringLength(45, MinimumLength = 3, ErrorMessage = "Invalid fieldlength")]
        public string Name { get; set; }

        public virtual List<Country> Country { get; set; }
    }
}